package com.example.demo.controller

import com.example.demo.domain.entity.UserEntity
import org.hibernate.validator.internal.constraintvalidators.bv.time.past.PastValidatorForThaiBuddhistDate
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.web.bind.annotation.*

@RequestMapping("/user")
@RestController
class User {

    @GetMapping("/info")
    fun  hello( @RequestParam("id", required=false) id: Long): String {
        return UserEntity(id).toString()
    }
}

